// import layout from '@/App.vue'
import layout from '../layout/index.vue'

export const HomeRouter = {
    path: '/',
    name: 'init',
    title: 'ssrTest',
    redirect: 'home',
    meta: {
        pathname: '/index.html'
    },
    component: layout
}

export const appRouter = {
    path: '/',
    name: 'init',
    title: 'ssrTest',
    redirect: 'home',
    meta: {
        pathname: '/index.html'
    },
    component: layout,
    children: [{
            path: 'home',
            name: 'home',
            title: '首页',
            meta: {
                parent: [{
                    name: 'init',
                    title: 'ssrTest'
                }],
                title: '首页',
                pathname: '/index.html'
            },
            component: () => import(/* webpackChunkName: "about" */ '@/views/home.vue')
        },
        {
            path: 'about',
            name: 'about',
            title: '关于',
            meta: {
                parent: [{
                    name: 'init',
                    title: 'ssrTest'
                }],
                title: '关于',
                pathname: '/index.html'
            },
            component: () => import(/* webpackChunkName: "about" */ '@/views/about.vue')
        }
    ]
}

export const routers = [
    appRouter
]
